const router = require('koa-router')()
const send = require('koa-send')

router.get('/download',async(ctx)=>{
    const name  = ctx.query.name;
    const path = `./public/temporary/${name}`;
    ctx.attachment(path);
    await send(ctx,path);
})

module.exports = router;